﻿using System;

namespace XDCCManager.Model.Packs
{
	public class NewPack : BaseModel, IPack, INavigable
	{
		#region IPack Members

		private string description;

		public string Description
		{
			get { return description; }
			set { if (description != value) { description = value; OnPropertyChanged("Description"); } }
		}

		public int Gets
		{
			get
			{
				return 0;
			}
			set
			{
				throw new NotSupportedException();
			}
		}

		public string Note
		{
			get
			{
				return string.Empty;
			}
			set
			{
				throw new NotSupportedException();
			}
		}

		private int number;

		public int Number
		{
			get { return number; }
			set { if (number != value) { number = value; OnPropertyChanged("Number"); } }
		}

		private int size;

		public int Size
		{
			get { return size; }
			set { if (size != value) { size = value; OnPropertyChanged("Size"); } }
		}

		#endregion

		#region INavigable Members

		public INavigable Before { get; set; }

		public INavigable After { get; set; }

		public IPack Source
		{
			get { return null; }
			set
			{
				throw new System.NotSupportedException();
			}
		}

		public IPack Destination { get; set; }

		#endregion
	}
}
